package com.ysd.Servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.GongShiTuPianDaoimpl;
import com.ysd.entity.GongShiTuPian;


public class GongShiTuPianServlet extends HttpServlet {
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		
		GongShiTuPianDaoimpl gstpd=new GongShiTuPianDaoimpl();//获得公司的图片的实现类
		GongShiTuPian gstp=gstpd.getGongShiTuPian();//通过获得公司的图片的实现类来获取数据
		request.setAttribute("gstp", gstp);//存数据到下个页面
		request.getRequestDispatcher("index.jsp").forward(request, response);
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
